sum
{base}
Get sum of numeric values or a vector
slice
{dplyr}
Subset rows using their positions
is.na
{base}
Check if a value is NA/elements of vector are NA
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
save
{base}
Writes an external representation of R objects to the specified file.
select
{dplyr}
Select columns from a tibble/data frame
write.csv
{utils}
write a csv file to a data frame
n
{dplyr}
The number of observations in the current group.
write_dta
NA
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
cut
{base}
Convert Numeric to Factor
as.numeric
{base}
Coerce a vector to numeric
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
data.frame
{base}
Create a data.frame from vectors
library
{base}
Load an R package
ordered
{dplyr}
Create an ordered factor
read_dta
{haven}
Read a .dta file (Stata data)
as.character
{base}
Coerce a vector to character
recode
{dplyr}
Recode a variable
separate
{dplyr}
Separate a character column into multiple columns
spread
{tidyr}
Spread a key-value pair across multiple columns
arrange
{dplyr}
Sort values of data frame according to a variable/combination of varaibles
mean
{base}
Get mean of a vector
filter
{dplyr}
Filter out rows of a data frame according to logical vector
ifelse
{base}
Return a or b depending on the value of test
summarize
NA
setwd
{base}
Set Working Directory
mutate
{dplyr}
Modify/create a column in a data frame
factor
{base}
Create a factor
c
{base}
Combine values/vectors into a vector
desc
{dplyr}
Arrange in descending order
The end!